package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 访客信息对象 hlyy_visit
 * 
 * @author xinqilin
 * @date 2023-12-07
 */
public class SysVisit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long visitId;

    /** 访客名称 */
    @Excel(name = "访客名称")
    private String visitName;

    /** 来访人数 */
    @Excel(name = "来访人数")
    private Integer visitNumber;

    /** 拜访类型（0已预约 1未预约 2陌拜） */
    @Excel(name = "拜访类型", readConverterExp = "0=已预约,1=未预约,2=陌拜")
    private String visitType;

    /** 访客性别（0男 1女 2未知） */
    @Excel(name = "访客性别", readConverterExp = "0=男,1=女,2=未知")
    private String visitSex;

    /** 拜访状态（0会见 1谢客） */
    @Excel(name = "拜访状态", readConverterExp = "0=会见,1=谢客")
    private String visitStatus;

    /** 拜访时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "拜访时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date visitTime;

    public void setVisitId(Long visitId) 
    {
        this.visitId = visitId;
    }

    public Long getVisitId() 
    {
        return visitId;
    }
    public void setVisitName(String visitName) 
    {
        this.visitName = visitName;
    }

    public String getVisitName() 
    {
        return visitName;
    }
    public void setVisitNumber(Integer visitNumber) 
    {
        this.visitNumber = visitNumber;
    }

    public Integer getVisitNumber() 
    {
        return visitNumber;
    }
    public void setVisitType(String visitType) 
    {
        this.visitType = visitType;
    }

    public String getVisitType() 
    {
        return visitType;
    }
    public void setVisitSex(String visitSex) 
    {
        this.visitSex = visitSex;
    }

    public String getVisitSex() 
    {
        return visitSex;
    }
    public void setVisitStatus(String visitStatus) 
    {
        this.visitStatus = visitStatus;
    }

    public String getVisitStatus() 
    {
        return visitStatus;
    }
    public void setVisitTime(Date visitTime) 
    {
        this.visitTime = visitTime;
    }

    public Date getVisitTime() 
    {
        return visitTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("visitId", getVisitId())
            .append("visitName", getVisitName())
            .append("visitNumber", getVisitNumber())
            .append("visitType", getVisitType())
            .append("visitSex", getVisitSex())
            .append("visitStatus", getVisitStatus())
            .append("visitTime", getVisitTime())
            .toString();
    }
}
